<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <include file="Pub:head"/>

    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

    <script>
        $(function() {
            $( "#accordion" ).accordion();
        });
        function doread(ids)
        {

            $.post("__APP__/message/read/", "id="+ids,
                    function (data, status) {
                        alert(data);
                        //   alert("数据：" + data + "\n状态：" + status);
                        window.location.reload();
                    });
        }
    </script>
</head>
<body>

<fieldset>
    <legend>请在八小时之内对消息进行回复</legend>
    <div id="accordion">
        <volist name="list" id="vo">
        <h3>{$vo.title}--{$vo.sender}--{$vo.sendtime}</h3>
        <div>
            <ul>
                <li ><span><a href="javascript:void(0);" onclick="doread({$vo['id']});">知道了</a> </span></li>
                <?php
                if(isset($vo['replytime']))
                {
                    echo "已经回复&nbsp;";
                    $url=U('message/Reply',array('id'=>$vo['id']) );
                    echo "<a href='$url'>回复内容</a>";
                }
                else
                {
                    echo "未回复&nbsp;";
                    $url=U('message/Reply',array('id'=>$vo['id']) );
                    echo "<li><a href='$url'>回复</a></li>";
                }
                ?>
            </ul>
            <!-- <IFRAME scrolling="auto" width="100%" height="100%" frameBorder=0 
             id=frmright name=frmright src="__APP__/message/welcomeReplay/id/{$vo.id}"  
             allowTransparency="true"></IFRAME>
            -->
          
            <p>{$vo.content}
               
            </p>  
            
        </div>

        </volist>

    </div>
</fieldset>

</body>
</html>